Optimal. Leaf size=31 \[ \frac {1}{2} x (a+2 b)+\frac {a \sinh (c+d x) \cosh (c+d x)}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 31, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {4045, 8} \[ \frac {1}{2} x (a+2 b)+\frac {a \sinh (c+d x) \cosh (c+d x)}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 4045
Rubi steps
\begin {align*} \int \cosh ^2(c+d x) \left (a+b \text {sech}^2(c+d x)\right ) \, dx &=\frac {a \cosh (c+d x) \sinh (c+d x)}{2 d}+\frac {1}{2} (a+2 b) \int 1 \, dx\\ &=\frac {1}{2} (a+2 b) x+\frac {a \cosh (c+d x) \sinh (c+d x)}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 33, normalized size = 1.06 \[ \frac {a (c+d x)}{2 d}+\frac {a \sinh (2 (c+d x))}{4 d}+b x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.41, size = 28, normalized size = 0.90 \[ \frac {{\left (a + 2 \, b\right )} d x + a \cosh \left (d x + c\right ) \sinh \left (d x + c\right )}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.15, size = 66, normalized size = 2.13 \[ \frac {4 \, {\left (d x + c\right )} {\left (a + 2 \, b\right )} + a e^{\left (2 \, d x + 2 \, c\right )} - {\left (2 \, a e^{\left (2 \, d x + 2 \, c\right )} + 4 \, b e^{\left (2 \, d x + 2 \, c\right )} + a\right )} e^{\left (-2 \, d x - 2 \, c\right )}}{8 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.31, size = 37, normalized size = 1.19 \[ \frac {a \left (\frac {\cosh \left (d x +c \right ) \sinh \left (d x +c \right )}{2}+\frac {d x}{2}+\frac {c}{2}\right )+\left (d x +c \right ) b}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.31, size = 38, normalized size = 1.23 \[ \frac {1}{8} \, a {\left (4 \, x + \frac {e^{\left (2 \, d x + 2 \, c\right )}}{d} - \frac {e^{\left (-2 \, d x - 2 \, c\right )}}{d}\right )} + b x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.08, size = 23, normalized size = 0.74 \[ \frac {a\,x}{2}+b\,x+\frac {a\,\mathrm {sinh}\left (2\,c+2\,d\,x\right )}{4\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 11.24, size = 60, normalized size = 1.94 \[ a \left (\begin {cases} - \frac {x \sinh ^{2}{\left (c + d x \right )}}{2} + \frac {x \cosh ^{2}{\left (c + d x \right )}}{2} + \frac {\sinh {\left (c + d x \right )} \cosh {\left (c + d x \right )}}{2 d} & \text {for}\: d \neq 0 \\x \cosh ^{2}{\relax (c )} & \text {otherwise} \end {cases}\right ) + b \left (\begin {cases} x & \text {for}\: \left |{x}\right | < 1 \\{G_{2, 2}^{1, 1}\left (\begin {matrix} 1 & 2 \\1 & 0 \end {matrix} \middle | {x} \right )} + {G_{2, 2}^{0, 2}\left (\begin {matrix} 2, 1 & \\ & 1, 0 \end {matrix} \middle | {x} \right )} & \text {otherwise} \end {cases}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________